home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000379_fdc@columbia.edu_Tue Nov 4 09:52:49 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How do I pass a password in a kermit script
Date: 4 Nov 2003 14:45:14 GMT
Organization: Columbia University
Lines: 51
Message-ID: <slrnbqferq.6oa.fdc@sesame.cc.columbia.edu>
References: <f0bb0f39.0310300922.3c050ba8@posting.google.com> <slrnbq2iv8.oe.fdc@sesame.cc.columbia.edu> <m14qxn4nlk.gnus@usa.net> <bo5o0u$kqm$1@newsmaster.cc.columbia.edu> <f0bb0f39.0311031218.7169c675@posting.google.com> <Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us> <f0bb0f39.0311040516.50768d0a@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1067957114 2917 128.59.59.56 (4 Nov 2003 14:45:14 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 4 Nov 2003 14:45:14 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14635
In article <f0bb0f39.0311040516.50768d0a@posting.google.com>,
newexpectuser wrote:
: I don't think though that any version of Kermit can automatically
: delete a file it just transfered successfully though ?
:
Something seems to be wrong with our news server. The original copy of the
following post never showed up... Anyway, as the the above -- as Jeff said,
yes, of course Kermit can do that. For much more about Kermit's capabilities
in this area ("atomic file movement" or "transaction processing"), see:
http://www.columbia.edu/kermit/case10.html
and (as an ftp client):
http://www.columbia.edu/kermit/ftpscripts.html
: Mark Sapiro <msapiro@ccsf.edu> wrote in
: message news:<Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>...
:> On 3 Nov 2003, newexpectuser wrote:
:> ...
:> I don't know if this helps or not, but this is what I do with C-Kermit
:> 8.0.209 on FreeBSD Unix.
:>
:> \m(rhost) and \m(rdomain) are set earlier in the script.
:> ...
:> assign pswd1 not
:> assign pswd2 equal
:> while not equal {\m(pswd1)} {\m(pswd2)} {
:> askq pswd1 {Password for \v(userid) on \m(rhost):}
:> askq pswd2 {Reenter to confirm:}
:> }
:> set host /pty ssh -e none -l \v(userid) \m(rhost).\m(rdomain)
:> if fail end 1 Unable to connect to \m(rhost).
:> input 20 assword:
:> if fail end 1 No password prompt.
:> output \m(pswd1)\13
:> ...
:>
:> The input and output statements see the password prompt from ssh
:> and supply the password. It works in my situation.
:
Right, this would be one way to do it, if it can be done. But it might also
be the case that an ssh client does not use /dev/tty when prompting for the
password. If yours does, fine. If not, scripting the interaction will
be a challenge.
In any case, as Jeff says, the scripts in the script library are examples,
samples to be taken as starting points. Readers have always been welcome to
make contributions. The invitation still stands.
- Frank